﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Net;
using System.IO;
using System.Web.UI.HtmlControls;
using System.Configuration;


namespace TestClient
{
    public partial class CallPostMethodAppReopen : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnTest_Click(object sender, EventArgs e)
        {

            string postData;
            postData = "user_id =" + txtuser_id.Text + "/user_name=" + txtuser_name.Text + "/password=" + txtpassword.Text + "/promo_code=" + txtpromo_code.Text + "/welcome_image_chg_time=" + txtWelcomeImageChgTime.Text + "/spon_change_time=" + txtSponsorCchangeTime.Text;

            ASCIIEncoding encoding = new ASCIIEncoding();
            byte[] data = encoding.GetBytes(postData);

            Stream stream = new MemoryStream(data);

            ServiceReference2.Service1Client sc = new ServiceReference2.Service1Client();
            Stream str = sc.getApp_Reopen(stream);
            StreamReader reader = new StreamReader(str);
            string text = reader.ReadToEnd();
            lblResponse.Text = text;

        }
    }
}